/**
 * Bullet.java
 */

package rainingcatsdogs;

import javax.microedition.lcdui.Image;

/**
 * The Bullet class to hold details about a bullet that was shot from a Turret
 */
public class Bullet extends MovableObject {

	/**
	 * The Amount of damage a bullet will inflict to an enemy if it collides
	 * with it
	 */
	private int bulletDamage;

	/**
	 * Constructor for a bullet, called whenever a new bullet is fired and a new
	 * bullet is created.
	 * 
	 * @param explodeFrames
	 *            The number of frames that the bullet will take for its explode
	 *            animation.
	 * @param image
	 *            The image to use for the bullet
	 * @param frameWidth
	 *            The width of a frame of the bullet
	 * @param frameHeight
	 *            The height of a frame of the bullet
	 * @param bulletDamage
	 *            The amount of damage a bullet does to an enemy
	 */
	public Bullet(int explodeFrames, Image image, int frameWidth,
			int frameHeight, int bulletDamage) {
		super(explodeFrames, image, frameWidth, frameHeight);
		this.bulletDamage = bulletDamage;
	}

	/**
	 * Returns the damage bullets deal
	 * @return the amount of damage that can be done with the bullet
	 */
	public int getbulletDamage() {
		return this.bulletDamage;
	}

}
